<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib uri="/WEB-INF/page-base.tld" prefix="p"%>
<%String path=request.getContextPath(); %>
<script>
function userpwd_edit(){
	if($getByName('userpwd2',$w.currWinForm()).val()!=$getByName('newPwd',$w.currWinForm()).val())
	{
		$w.alertMsg("新输入的密码不一致");
		return false;
	}
	return $w.doWinForm(function(re){if(re.state){$w.closeCurrWin();}});
}
function userpwd_edit2(){
	if($getByName('userpwd2',$w.currTabForm()).val()!=$getByName('newPwd',$w.currTabForm()).val())
	{
		$w.alertMsg("新输入的密码不一致");
		return false;
	}
	return $w.doForm({callback:function(re){if(re.state){$w.closeCurrTab();}}});
}
</script>
<div class="easyui-panel" data-options="doSize:false,layoutH:43,border:false" style="margin-top:5px;margin-left:5px ">
	<form method="post" action="/platform/user/UserManagePage@changeMyPwd_save.page">
	<div class="ui-formContent">
 			<p >
			<label style="width:90px">旧密码：</label>
			<p:text bind="oldPwd" style="width:200px" type="password" styleClass="easyui-validatebox" dataOptions="required:true"/>
			<span class="inputInfo">输入原来的密码</span>
		</p>
 			<p >
			<label style="width:90px">新密码：</label>
			<p:text bind="newPwd" style="width:200px" type="password" styleClass="easyui-validatebox" dataOptions="required:true"/>
			<span class="inputInfo">用户新的密码</span>
		</p>
		<p >
			<label style="width:90px">确认新密码：</label>
			<input name="userpwd2" style="width:200px" type="password" class="easyui-validatebox" data-options="required:true"/>
			<span class="inputInfo">再一次输入新密码</span>
		</p>
	</div>
	</form>
</div>
<div class="ui-buttonBar">
	<a href="#" class="easyui-linkbutton" iconCls="icon_save" onclick="<%if("true".equals(request.getParameter("iswin"))){ %>userpwd_edit()<%}else{ %>userpwd_edit2()<%} %>">提 交</a>
	<%if("true".equals(request.getParameter("iswin"))){ %><a href="#" class="easyui-linkbutton" iconCls="icon_cancel" onclick="$w.closeCurrWin()">取 消</a><%} %>
</div>